[pull] main from chronotope:main - #7
Open
pull[bot] wants to merge 1006 commits into
Open
Conversation
Updates the requirements on [windows-bindgen](https://github.com/microsoft/windows-rs) to permit the latest version. - [Release notes](https://github.com/microsoft/windows-rs/releases) - [Commits](microsoft/windows-rs@0.53.0...0.54.0) --- updated-dependencies: - dependency-name: windows-bindgen dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 5 to 6. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](actions/setup-node@v5...v6) --- updated-dependencies: - dependency-name: actions/setup-node dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
Signed-off-by: spuradage <spuradage@outlook.com>
Bumps [actions/checkout](https://github.com/actions/checkout) from 5 to 6. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v5...v6) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
… that can panic because of invalid user input.
Bumps [codecov/codecov-action](https://github.com/codecov/codecov-action) from 5 to 6. - [Release notes](https://github.com/codecov/codecov-action/releases) - [Changelog](https://github.com/codecov/codecov-action/blob/main/CHANGELOG.md) - [Commits](codecov/codecov-action@v5...v6) --- updated-dependencies: - dependency-name: codecov/codecov-action dependency-version: '6' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
Updates the requirements on [similar-asserts](https://github.com/mitsuhiko/similar-asserts) to permit the latest version. - [Changelog](https://github.com/mitsuhiko/similar-asserts/blob/main/CHANGELOG.md) - [Commits](mitsuhiko/similar-asserts@1.6.1...2.0.0) --- updated-dependencies: - dependency-name: similar-asserts dependency-version: 2.0.0 dependency-type: direct:production ... Signed-off-by: dependabot[bot] <support@github.com>
TimeZoneName::new rejected designations outside 3-7 characters or [0-9A-Za-z+-]. zic and glibc accept longer names and '_', so a valid /etc/localtime using such a designation failed to parse and chrono::Local silently fell back to UTC. Store the designation in a 32-byte length-prefixed buffer (TimeZoneName/LocalTimeType stay Copy, no API change), accept up to 31 characters, truncating longer names instead of failing the parse, and allow '_'. Adds regression tests. Fixes #1793
Bumps [actions/checkout](https://github.com/actions/checkout) from 6 to 7. - [Release notes](https://github.com/actions/checkout/releases) - [Changelog](https://github.com/actions/checkout/blob/main/CHANGELOG.md) - [Commits](actions/checkout@v6...v7) --- updated-dependencies: - dependency-name: actions/checkout dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
Web-target cfg gates (the wasm-bindgen / js-sys code paths and the `wasm-pack test --node` harness) currently key on `target_arch = "wasm32"`. As a result they silently disappear when building for `wasm64-unknown-unknown`: the `wasm-bindgen` and `js-sys` optional dependencies are not pulled in, `Utc::now()`, `Local`'s offset lookup, and the `js_sys::Date` conversions fall back to the non-web default (which calls `SystemTime::now()` and panics on wasm), and the `tests/wasm.rs` harness is compiled out. Switching the gates to `target_family = "wasm"` makes the same web backend apply to any WebAssembly target, including `wasm64`. The existing `not(any(target_os = "emscripten", target_os = "wasi"[, "linux"]))` exclusions are preserved, so behavior on `wasm32-unknown-emscripten`, `wasm32-wasip*` and emscripten/WASI variants is unchanged. `target_family = "wasm"` has been stable since Rust 1.54, well below chrono's MSRV (1.62). `wasm64-unknown-unknown` is a Tier 3 target, so it cannot be added to CI, but the same code paths are still exercised by the existing `wasm-pack test --node --features wasmbind` job on `wasm32`.
Bumps [actions/setup-node](https://github.com/actions/setup-node) from 6 to 7. - [Release notes](https://github.com/actions/setup-node/releases) - [Commits](actions/setup-node@v6...v7) --- updated-dependencies: - dependency-name: actions/setup-node dependency-version: '7' dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <support@github.com>
`NaiveDateDaysIterator` and `NaiveDateWeeksIterator` implemented `DoubleEndedIterator` by walking their single `value` cursor backwards from the start, while `size_hint`/`len` reported the number of steps up to `NaiveDate::MAX`. As a result reversing them (e.g. `iter_days().take(n).rev()`) produced dates far outside the intended range. Track an exclusive upper bound `end` so each iterator models the half-open range `[value, end)`: `next` advances `value` from the front and `next_back` lowers `end` from the back. `nth_back` skips in O(1) so `take(n).rev()` stays cheap even though the range extends to `NaiveDate::MAX`. Forward iteration and `size_hint` are unchanged. Fixes #1757
`from_isoywd_opt` is a fallible `_opt` constructor documented to return `None` for out-of-range years, but it panicked for `i32::MIN` / `i32::MAX` because the internal `year - 1` / `year + 1` step overflowed. Use checked arithmetic and return `None` there; such years are far outside the range of `NaiveDate` anyway. Fixes #1808
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
See Commits and Changes for more details.
Created by
pull[bot]
Can you help keep this open source service alive? 💖 Please sponsor : )